]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Remove more dead code
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 26 Feb 2013 01:33:37 +0000 (20:33 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 20 Apr 2013 12:33:26 +0000 (08:33 -0400)
By the time zoomToOverview is called, an animation will
always be in progress.

https://bugzilla.gnome.org/show_bug.cgi?id=694469

js/ui/workspace.js

index 2bbe56a2b6010192b18e8b0664df480098d0b5b6..67f3b939d70047873938c8c93f663314f752bd4e 100644 (file)
@@ -1296,10 +1296,7 @@ const Workspace = new Lang.Class({
     // Animate the full-screen to Overview transition.
     zoomToOverview : function() {
         // Position and scale the windows.
-        if (Main.overview.animationInProgress)
-            this._positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL);
-        else
-            this._positionWindows(WindowPositionFlags.INITIAL);
+        this._positionWindows(WindowPositionFlags.ANIMATE | WindowPositionFlags.INITIAL);
     },
 
     // Animates the return from Overview mode